$(document).ready(function() {
	/*$(".flags").click(function() {
		country=$(this).attr('value');
		$.cookie("country",country,{ expires: 7 });
		document.location.reload();
	});*/
		
/*********Date picker**********/
	$( "#datetime1" ).datepicker({
		numberOfMonths: 1,  dateFormat: 'yy/mm/dd',
	});
		$( "#datetime2" ).datepicker({
		numberOfMonths: 1,  dateFormat: 'yy/mm/dd',
	});

	$( "#datetime3" ).datepicker({
		numberOfMonths: 1,  dateFormat: 'yy/mm/dd',
	});

   $( "#datetime4" ).datepicker({
		numberOfMonths: 1,  dateFormat: 'yy/mm/dd',
	});

   $( "#datetime5" ).datepicker({
		numberOfMonths: 1,  dateFormat: 'yy/mm/dd',
	});


	   $("[name=countryTours]").change( function() {
	            	val = $(this).val(); 
	            	$("[name=start]").load('http://icn-travel.com/default/index/start/id/' + val);
	            	$("[name=finish]").load('http://icn-travel.com/default/index/finish/id/' + val);
	            	$("[name=destination]").load('http://icn-travel.com/default/index/loaddes/id/' + val);
	   });
	   
	   
	   $("[name=country_hotel]").change( function() {
       	val = $(this).val(); 
       	$("[name=start]").load('http://icn-travel.com/default/index/start/id/' + val);
       	$("[name=finish]").load('http://icn-travel.com/default/index/finish/id/' + val);
       	$("[name=destination_hotel]").load('http://icn-travel.com/default/index/loaddes/id/' + val);
        });
	   
	   $("[name=country_daytrip]").change( function() {
	       	val = $(this).val(); 
	       	$("[name=start]").load('http://icn-travel.com/default/index/start/id/' + val);
	       	$("[name=finish]").load('http://icn-travel.com/default/index/finish/id/' + val);
	       	$("[name=destination_daytrip]").load('http://icn-travel.com/default/index/loaddes/id/' + val);
	});
	   
	   $("[name=country_cruise]").change( function() {
	       	val = $(this).val(); 
	       	$("[name=start_cruise]").load('http://icn-travel.com/default/index/start/id/' + val);
	       	$("[name=finish_cruise]").load('http://icn-travel.com/default/index/finish/id/' + val);
	       	$("[name=destination_cruise]").load('http://icn-travel.com/default/index/loaddes/id/' + val);
	});
	  /* $("#rate").change(function() {
		    rate=$(this).attr('value');
			$.cookie("rate",rate,{ expires: 7 });
			document.location.reload();
		});
	   $("#rate").val($.cookie("rate"));
*/
	$("#rate").change(function() {
		   $('#frate').submit();
	 });	

	
});

$(function() {
    $('#gallery a').lightBox();
});

